QT+= core gui network opengl sql
LIBS += -lopengl32
LIBS += -ldbghelp
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl

TRANSLATIONS = Tranlate_EN.ts\
               Tranlate_CH.ts
TARGET = trb
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++17




SOURCES += \
    camera_dalsa.cpp \
    camera_qdialog.cpp \
    commonfunction.cpp \
    function.cpp \
    function_bottom_match.cpp \
    function_circle_match.cpp \
    function_create_shape_model.cpp \
    function_dl.cpp \
    function_dump.cpp \
    function_find_shape_model.cpp \
    function_frank_match.cpp \
    function_frank_width.cpp \
    function_segment_circle.cpp \
    function_segment_rect.cpp \
    function_segment_scan.cpp \
    function_width_measure.cpp \
    halcon_opencv.cpp \
        main.cpp \
    mainwindow.cpp \
    my_table_widget.cpp \
    para.cpp \
    qdialog_login.cpp \
    qdialog_user.cpp \
    qt_hread_process.cpp \
    qwidget_dl_para1.cpp \
    qwidget_dl_para2.cpp \
    save_image.cpp \
    show_qlabel.cpp

HEADERS += \\
    camera_dalsa.h \
    camera_qdialog.h \
    commonfunction.h \
    function.h \
    function_bottom_match.h \
    function_circle_match.h \
    function_create_shape_model.h \
    function_dl.h \
    function_dump.h \
    function_find_shape_model.h \
    function_frank_match.h \
    function_frank_width.h \
    function_segment_circle.h \
    function_segment_rect.h \
    function_segment_scan.h \
    function_width_measure.h \
    halcon_opencv.h \
    login_dialog.h \
        mainwindow.h \
    my_table_widget.h \
    para.h \
    qdialog_user.h \
    qfont_save_load.h \
    qt_graphics_shape_circle_rectangle.h \
    qt_graphics_shape_point.h \
    qt_graphics_shape_rectangle.h \
    qt_graphics_view.h \
    qt_graphics_view_image.h \
    qt_graphis_pixmap.h \
    qt_hread_process.h \
    qwidget_dl_para1.h \
    qwidget_dl_para2.h \
    recipe_dialog.h \
    save_image.h \
    show_qlabel.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


DEFINES += WIN32_LEAN_AND_MEAN
INCLUDEPATH += "d:\\trb\\libmodbus/include"
LIBS        += "d:\\trb\\libmodbus/lib/modbus.lib"

INCLUDEPATH+=  "C:/Program Files/Teledyne DALSA/Sapera/Classes/Basic"
INCLUDEPATH+=  "C:/Program Files/Teledyne DALSA/Sapera/Include"
LIBS       += "C:/Program Files/Teledyne DALSA/Sapera/Lib/Win64/SapClassBasic.lib" \
            "C:/Program Files/Teledyne DALSA/Sapera/Lib/Win64/corapi.lib"


#INCLUDEPATH   += "C:\\Program Files\\HuarayTech\\MV Viewer\\Development\\Include\\IMV"
#LIBS          += "C:\\Program Files\\HuarayTech\\MV Viewer\\Development\\Lib\x64\\MVSDKmd.lib"

INCLUDEPATH   += "d:\\trb"

INCLUDEPATH   += "d:\\trb\\opencv/build/include"
CONFIG(debug, debug|release){
LIBS += "d:\\trb\\opencv/build/x64/vc16/lib/opencv_world470d.lib"
}else{
LIBS += "d:\\trb\\opencv/build/x64/vc16/lib/opencv_world470.lib"
}

RC_ICONS = logo.ico

INCLUDEPATH   += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-24.11-Progress-Steady\include"
INCLUDEPATH   += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-24.11-Progress-Steady\include/halconcpp"
LIBS          += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-24.11-Progress-Steady\lib\x64-win64/halconcppxl.lib"

#DISTFILES += \
#    smt.vcxproj.user
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teExTypes)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypes)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypesDataRegistration)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teDataRegistration\3rd_party)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowEngine)

#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\teAiFlow_GraphicsView)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\VariantStreamStatistics)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\Global)
#    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\3rd_party)


#    win32:CONFIG(debug, debug|release): {
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypesd.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesd.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistrationd.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistrationd.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngined.lib)

#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qtd.lib)
#    }
#    else:win32:CONFIG(release, debug|release): {
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypes.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypes.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistration.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistration.lib)
#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngine.lib)

#        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qt.lib)
#    }
